package live.zs.config;

import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithName;

import java.util.Optional;
import java.util.OptionalInt;

/**
 * @author madison
 * @description
 * @date 2022/2/3 17:28
 */
@ConfigMapping(prefix = "optionals")
public interface Optionals {
    Optional<Server> server();

    Optional<String> optional();

    @WithName("optional.int")
    OptionalInt optionalInt();

    interface Server {
        String host();

        int port();
    }
}
